package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.RobotUserPermission;

import java.util.Date;
import java.util.List;

public interface RobotUserPermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RobotUserPermission record);

    int insertSelective(RobotUserPermission record);

    RobotUserPermission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RobotUserPermission record);

    int updateByPrimaryKey(RobotUserPermission record);

    List<Integer> selectPowerIdListByUserId(@Param("userId") Integer userId);

    int insetBatch(@Param("userId") Integer userId, @Param("list") List<Integer> integers,
                   @Param("date") Date date);

    int updateBatchById(@Param("userId") Integer userId, @Param("list") List<Integer> is, @Param("status") short status);

    List<Integer> selectPowerIdsByIds(@Param("userId") Integer userId);

    int insetBatchByStatus(@Param("userId") Integer userId, @Param("list") List<Integer> integers, @Param("status") Short status,
                           @Param("date") Date date);
}
